package com.xdb.sqlparser.dialect.oracle.ast;

import com.xdb.sqlparser.ast.SQLDataTypeImpl;
import com.xdb.sqlparser.dialect.oracle.visitor.OracleASTVisitor;
import com.xdb.sqlparser.visitor.SQLAstVisitor;

public class OracleDataTypeTimestamp extends SQLDataTypeImpl implements OracleSQLObject {

	private boolean withTimeZone = false;
	private boolean withLocalTimeZone = false;

	public OracleDataTypeTimestamp() {
		this.setName("TIMESTAMP");
	}

	@Override
	protected void accept0(SQLAstVisitor visitor) {
		this.accept0((OracleASTVisitor) visitor);
	}

	@Override
	public void accept0(OracleASTVisitor visitor) {
		if (visitor.visit(this)) {
			acceptChild(visitor, getArguments());
		}
		visitor.endVisit(this);
	}

	public boolean isWithTimeZone() {
		return withTimeZone;
	}

	public void setWithTimeZone(boolean withTimeZone) {
		this.withTimeZone = withTimeZone;
	}

	public boolean isWithLocalTimeZone() {
		return withLocalTimeZone;
	}

	public void setWithLocalTimeZone(boolean withLocalTimeZone) {
		this.withLocalTimeZone = withLocalTimeZone;
	}

}
